package com.wonders.frame.chron.model.bo;
// default package

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.wonders.frame.core.model.IDefaultModel;
import com.wonders.frame.core.tags.ShowInView;
import com.wonders.frame.core.tags.ShowInView.OperateType;

/**
 * AfChSummary entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "AF_CH_SUMMARY")
public class Summary  implements IDefaultModel  {

	// Fields

	private Integer id;
	private String code;
	private Date contentTimeStart;
	private Date contentTimeEnd;
	private String contentTitle;
	private String sendUnit;
	@Column(name = "COMPILE_STATUS", length = 10)
	public String getComplieStatus() {
		return complieStatus;
	}
	
	public void setComplieStatus(String complieStatus) {
		this.complieStatus = complieStatus;
	}

	private String sorter;
	private Date sortDate;
	@ShowInView(name="长编审核",operateType=OperateType.SELECT,ccateType="cardStatus")
	private String status;
	@ShowInView(name="编撰审核",operateType=OperateType.SELECT,ccateType="complieStatus")
	private String complieStatus;
	
	
	@ShowInView(name = "待办ID")
	private String todoItemId;
	@ShowInView(name = "流程ID")
	private String processInstanceId;
	@ShowInView(name = "流程模板ID")
	private String processDefinitionId;
	private Integer removed;
	private String content;

	private Date operateTime = new Date(System.currentTimeMillis());
	private String operateUser;
	private String operateDept;
	private String operateUserId;
	private String operateDeptId;
	
	private String keyword;
	
	// Constructors

	/** default constructor */
	public Summary() {
		this.removed = 0;
	}

	/** full constructor */
	public Summary(String code, Date contentTimeStart, String contentTitle,
			String sendUnit, String sorter, Date sortDate, String status,
			Integer removed) {
		this.code = code;
		this.contentTimeStart = contentTimeStart;
		this.contentTitle = contentTitle;
		this.sendUnit = sendUnit;
		this.sorter = sorter;
		this.sortDate = sortDate;
		this.status = status;
		this.removed = removed;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE,generator ="Generator")   
	@SequenceGenerator(name = "Generator", sequenceName  = "seq_af_ch_summary",allocationSize=1)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "CODE", length = 20)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	@Column(name = "CONTENT_TIME_END", length = 7)
	public Date getContentTimeEnd() {
		return contentTimeEnd;
	}

	public void setContentTimeEnd(Date contentTimeEnd) {
		this.contentTimeEnd = contentTimeEnd;
	}

	@Column(name = "KEYWORD", length = 7)
	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	
	@Column(name = "CONTENT_TIME_START", length = 7)
	public Date getContentTimeStart() {
		return contentTimeStart;
	}
	
	public void setContentTimeStart(Date contentTimeStart) {
		this.contentTimeStart = contentTimeStart;
	}

	@Column(name = "CONTENT_TITLE", length = 100)
	public String getContentTitle() {
		return this.contentTitle;
	}

	public void setContentTitle(String contentTitle) {
		this.contentTitle = contentTitle;
	}

	@Column(name = "SEND_UNIT", length = 50)
	public String getSendUnit() {
		return this.sendUnit;
	}

	public void setSendUnit(String sendUnit) {
		this.sendUnit = sendUnit;
	}

	@Column(name = "SORTER", length = 50)
	public String getSorter() {
		return this.sorter;
	}

	public void setSorter(String sorter) {
		this.sorter = sorter;
	}

	@Column(name = "SORT_DATE", length = 7)
	public Date getSortDate() {
		return this.sortDate;
	}

	public void setSortDate(Date sortDate) {
		this.sortDate = sortDate;
	}

	@Column(name = "STATUS", length = 10)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Column(name = "TODO_ITEM_ID", length = 50)
	public String getTodoItemId() {
		return todoItemId;
	}

	public void setTodoItemId(String todoItemId) {
		this.todoItemId = todoItemId;
	}

	@Column(name = "PROCESS_INSTANCE_ID", length = 50)
	public String getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	@Column(name = "PROCESS_DEFINITION_ID", length = 50)
	public String getProcessDefinitionId() {
		return processDefinitionId;
	}

	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

	@Column(name = "REMOVED", precision = 22, scale = 0)
	public Integer getRemoved() {
		return this.removed;
	}

	public void setRemoved(Integer removed) {
		this.removed = removed;
	}
	
	@Column(name = "CONTENT")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "OPERATE_TIME", length = 20)
	public Date getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Date operateTime) {
		this.operateTime = operateTime;
	}

	@Column(name = "OPERATE_USER", length = 200)
	public String getOperateUser() {
		return operateUser;
	}

	public void setOperateUser(String operateUser) {
		this.operateUser = operateUser;
	}

	@Column(name = "OPERATE_DEPT", length = 200)
	public String getOperateDept() {
		return operateDept;
	}

	public void setOperateDept(String operateDept) {
		this.operateDept = operateDept;
	}

	@Column(name = "OPERATE_USER_ID", length = 20)
	public String getOperateUserId() {
		return operateUserId;
	}

	public void setOperateUserId(String operateUserId) {
		this.operateUserId = operateUserId;
	}

	@Column(name = "OPERATE_DEPT_ID", length = 20)
	public String getOperateDeptId() {
		return operateDeptId;
	}

	public void setOperateDeptId(String operateDeptId) {
		this.operateDeptId = operateDeptId;
	}
}